package com.my.service;

import com.my.bean.Room;
import com.baomidou.mybatisplus.service.IService;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 房间 服务类
 * </p>
 *
 * @author 张子艺
 * @since 2018-08-30
 */
public interface RoomService extends IService<Room> {
   List<Room> findProjectByHomeName(String[] data1,String[] data2,String param,Long userId,boolean admin,long areaid);
   List<Room> selectHomeListBySerch( String param,Long userId,boolean admin,long areaid);
   //查询出该房间未退房的订单ID
   Long findOrderIdByHomeId(Long homeId);
   //查询出该房间未退房的订单关联字典表的套餐
   List<Room>  findAllMealNameByHomeId(Long homeId);

   //查询出该房间未退房的所有消费
   Map  findAllMoneyByHomeId(Long homeId);

   //退房
   String  overHome(Long homeId) throws SQLException;
   //查询出没有订单的房间
   List<Room>  findRoomByNoOrder(Long userId,boolean admin,long areaid);


}
